<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>

        var person=new Object();
        person.name="zhangsan";
        person.age=10;
        person.eat=function(food){
            console.log(food+"吃东西");
        }
        console.log(person.name);
        console.log(person.age);
       person.eat("huoguo");
    </script>
</head>
<body>
    
</body>
</html>